package org.boot.fast.pojo.jdbc;

import lombok.Data;

/**
 * 查询条件封装类
 */
@Data
public class QueryCondition {
    private String fieldName;    // 字段名
    private String operator;     // 操作符 (=, >, <, >=, <=, <>, LIKE, IN, etc.)
    private Object value;        // 字段值
    private String logical;      // 逻辑运算符 (AND, OR)

    public QueryCondition() {}

    public QueryCondition(String fieldName, String operator, Object value) {
        this.fieldName = fieldName;
        this.operator = operator;
        this.value = value;
        this.logical = "AND";
    }

    public QueryCondition(String fieldName, String operator, Object value, String logical) {
        this.fieldName = fieldName;
        this.operator = operator;
        this.value = value;
        this.logical = logical;
    }

}